package cn.edu.bit.learn.action;


import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.actions.DispatchAction;

import cn.edu.bit.learn.form.BookForm;

public class BookAction extends DispatchAction {
	public ActionForward index(ActionMapping mapping,ActionForm form,
			HttpServletRequest request, HttpServletResponse response)throws Exception{
		BookForm bookForm =(BookForm)form;
		System.out.println("---------------");
		if("2".equals("2")){
			System.out.println("++++++++++++++");
			System.out.println("test autoauto啊不");
			System.out.println("???????????????????");
			return mapping.findForward("default");
		}
		
		System.out.println("???????????????????");
		return mapping.findForward("success");
	}
}
